import pygame

import entity

class Spite(entity.Entity, pygame.sprite.Sprite):
    def __init__(self, bitmapPath):
        pygame.sprite.Sprite.__init__(self)
        self.addSprite(bitmapPath)

    def addSprite(self, bitmapPath):
        if not os.path.isfile(bitmapPath):
            raise EntityError("Path %s does not exist, cannot add the sprite" % bitmapPath)
        self.sprite = loadImage(bitmapPath)

    def draw(self, x, y):
        if self.sprite is not None:
            pass
        